package cn.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.interceptor.Interceptors;


import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import cn.model.User;
import cn.service.UserService;
import cn.userBean.UserManager;

@Component(value="userServiceImpl")
@Scope(value="prototype")
public class UserServiceImpl implements UserService {

	private UserManager userManager;
	
	
	
	public UserManager getUserManager() {
		return userManager;
	}
	@Resource(name="userManagerBean")
	public void setUserManager(UserManager userManager) {
		this.userManager = userManager;
	}

	@Override
	public int deleteUser(User user) {
		return userManager.deleteUser(user);
	}

	@Override
	public int addUser(User user) {
		return userManager.addUser(user);
	}

	@Override
	public int updateUser(User user) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public User findUser(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<User> queryUser(User user) {
		// TODO Auto-generated method stub
		return null;
	}

}
